﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DangNhap.Master" AutoEventWireup="true" CodeBehind="DangKi.aspx.cs" Inherits="Web_Blog.DangKi" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .style1
        {
            width: 105%;
            height: 547px;
        }
        .style6
        {
            height: 50px;
        }
        .style9
        {
            width: 108px;
            height: 25px;
        }
        .style10
        {
            height: 25px;
        }
        .style13
        {
            height: 38px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td class="style6" colspan="2" 
                style="text-align: center; font-weight: bold; font-size: medium; color: #FFFFFF; text-decoration: underline; font-style: italic;">
                ĐĂNG KÍ TÀI KHOẢN</td>
        </tr>
        <tr>
            <td class="style6" colspan="2" 
                style="font-weight: bold; text-decoration: underline; font-style: italic;">
                Thông tin cá nhân</td>
        </tr>
        <tr>
            <td class="style9">
                Họ tên:</td>
            <td class="style10">
                <asp:TextBox ID="txt_hoten" runat="server" Width="290px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv_hoten" runat="server" 
                    ControlToValidate="txt_hoten" ErrorMessage="Nhập họ tên"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style9">
                Giới tính:</td>
            <td class="style10">
                <asp:DropDownList ID="ddl_gioitinh" runat="server" Height="20px" Width="295px">
                    <asp:ListItem>- Chọn một -</asp:ListItem>
                    <asp:ListItem Value="1">Nam</asp:ListItem>
                    <asp:ListItem Value="0">Nữ</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style9">
                Ngày sinh:</td>
            <td class="style10">
                <asp:TextBox ID="txt_ngaysinh" runat="server" Width="290px"></asp:TextBox>
                <asp:CompareValidator ID="cv_ngaysinh" runat="server" 
                    ControlToValidate="txt_ngaysinh" ErrorMessage="Nhập ngày sinh" 
                    Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="style9">
                Email</td>
            <td class="style10">
                <asp:TextBox ID="txt_Email" runat="server" Width="290px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv_email" runat="server" 
                    ControlToValidate="txt_Email" ErrorMessage="Nhập địa chỉ email"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txt_Email" ErrorMessage="!" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style6" colspan="2" 
                style="font-weight: bold; text-decoration: underline; font-style: italic;">
                Chọn tên truy cập và mật khẩu</td>
        </tr>
        <tr>
            <td class="style9">
                Tên truy cập:</td>
            <td class="style10">
                <asp:TextBox ID="txt_tentruycap" runat="server" ontextchanged="Page_Load" 
                    Width="290px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv_tentruycap" runat="server" 
                    ControlToValidate="txt_tentruycap" ErrorMessage="Nhập tên truy cập"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style9">
                Mật khẩu:</td>
            <td class="style10">
                <asp:TextBox ID="txt_matkhau" runat="server" TextMode="Password" Width="290px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv_matkhau" runat="server" 
                    ControlToValidate="txt_matkhau" ErrorMessage="Nhập mật khẩu"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style9">
                Đánh lại mật khẩu</td>
            <td class="style10">
                <asp:TextBox ID="txt_danhlaiMK" runat="server" TextMode="Password" 
                    Width="290px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv_danhlaiMK" runat="server" 
                    ControlToValidate="txt_danhlaiMK" ErrorMessage="Nhập lại mật khẩu"></asp:RequiredFieldValidator>
                <br />
                <asp:CompareValidator ID="cv_danhlaiMK" runat="server" 
                    ControlToCompare="txt_matkhau" ControlToValidate="txt_danhlaiMK" 
                    ErrorMessage="Mật khẩu không khớp"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="style13" colspan="2" style="font-weight: bold">
                <asp:Button ID="Button1" runat="server" Font-Bold="True" Height="30px" 
                    Text="TẠO TÀI KHOẢN" Width="150px" onclick="Button1_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
